<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <th>购物车id</th>
        <th>水果id</th>
        <th>用户id</th>
        <th>水果数量</th>
        <th>水果金额</th>
    </tr>
</table>
<span>合计：￥<strong></strong></span>

<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script>
    var payfruits = localStorage.getItem("payfruits");
    //localStorage.removeItem("payfruits")

    var fruits = JSON.parse(payfruits)
    console.log(fruits)
</script>
</body>
</html>